import { SET_LANGUAGE} from "../actionTypes"

const initState = {
    language: "English",
}

export const publicReducer = (state = initState, action) => {
    const { type, payload=1 } = action
    switch (type) {
        case SET_LANGUAGE:
            return { ...state, language: payload }
        default:
            return state
    }
}
